﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

namespace WEBSITE
{
    public partial class sanpham : System.Web.UI.Page
    {
        BLL.SanPhamBLL sp = new BLL.SanPhamBLL();
        DataTable dt = new DataTable();
        public string title;
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["id"]);
            dt = sp.ctSanPham(44).Tables[0];
            DataRow row = dt.Rows[0];
            title = row["TenSP"].ToString();
            product_detail.DataSource = sp.ctSanPham(id);
            product_detail.DataBind();
            tech_detail.DataSource = sp.ctSanPham(id);
            tech_detail.DataBind();
        }
    }
}